package
{
	public class Rectangle extends Object
	{
		public var origin:Point
		public var width:Number;
		public var height:Number;
		
		public function Rectangle(xCoor:Number, yCoor:Number, theWidth:Number, theHeight:Number)
		{
			origin = new Point(xCoor, yCoor);
			width = theWidth;
			height = theHeight;
			
			super();
		}
		
		public function isEqual(otherRect:Rectangle):Boolean
		{
			if(otherRect == null)
			{
				return false;
			}
			
			return this.origin.isEqual(otherRect.origin) && this.width == otherRect.width && this.height == otherRect.height;
		}
		
	}
}